//
//  RGLoginView.h
//  RedGrass
//
//  Created by wukong on 2018/11/23.
//  Copyright © 2018年 hongcaosp. All rights reserved.
//

#import "BaseView.h"

@class RGLoginView;

@protocol RGLoginViewDelegate<NSObject>

@optional
//获取验证码
-(void) gainCaptchaCodeWithLoginView:(RGLoginView *)view;
//微信登录
-(void) weChatloginWithLoginView:(RGLoginView *)view;
//登录遇到问题
-(void) loginFaiureWithLoginView:(RGLoginView *)view;
//返回
-(void) backWithLoginView:(RGLoginView *)view;
//密码登录
-(void) passwordLoginWithLoginView:(RGLoginView *)view;

@end
NS_ASSUME_NONNULL_BEGIN

@interface RGLoginView : BaseView

@property (strong, nonatomic, readonly) NSString *phoneNumber;
@property (strong, nonatomic, readonly) NSString *captchaCode;

@property (weak, nonatomic) id<RGLoginViewDelegate> viewDelegate;

//开始设置倒计时
-(void) begainGainCodeTimer;
//
-(void) changePhonePlaceholderWithStr:(NSString *)str;




@end

NS_ASSUME_NONNULL_END
